Beginning Flash®, Flex®, and AIR® Development for Mobile Devices by Jermaine G. Anderson

Beginning Flash®, Flex®, and AIR® Development for Mobile Devices by Jermaine G. Anderson

Author:Jermaine G. Anderson
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2011-09-13T16:00:00+00:00


2. Launch the Debugging App project again, this time using the Debug configuration. Ensure that only a single breakpoint is in place in the application, where the text is assigned to the labelStr variable in DebuggingAppHome.mxml.

NOTE When you add additional lines of code, breakpoints will move with the line of code that has the breakpoint assigned. In this example the breakpoint should remain on line 18.

This time when the application launches it will pause at the breakpoint. If you take a look in the Variables panel, you will see that the variable i is set to 5, and the labelStr variable is set to null. What is more significant here is that now the breakpoint has reached the line where the text is assigned to the labelStr variable within the if statement (Figure 6-18).

FIGURE 6-18: Checking the value of variable i and labelStr in the Variables panel



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.